package com.example.teesystem.entity.vo.issue;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/4/23 12:39
 */
@Data
public class IssueUpdateVo {

    @NotNull(message = "题目id不能为空")
    private Integer id;

    private String question;

    private String selectionA;

    private String selectionB;

    private String selectionC;

    private String selectionD;

    private String answer;

    private String knowledgeList;

    private String issueType;

    @NotNull(message = "课程id不能为空")
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;

    private String url;

    private Integer difficulty;

    private String analysis;

    private Integer trainingExam;

    private Integer type;

    private Integer chapterId;
}
